
function getList(keyword){
    return new Promise((resolve,reject)=>{
        $.get(`${baseUrl}/student?keyword=${keyword}`,res=>{
            resolve(res.data)
        })
    })
}

function getListOr2(pageIndex){
    return new Promise((resolve,reject)=>{
        $.get(`${baseUrl}/student?pageIndex=${pageIndex}&&pageSize=${pageSize}`,res=>{
            resolve(res.data)
        })
    })
}
function delList(id){
    return new Promise((resolve,reject)=>{
        $.ajax({
            url: `${baseUrl}/student/${id}`,
            type: 'delete',
            success: function(res){
                resolve(res)
            }
        })
    })
}
